
<body>

    <div class="hd">
        <div class="warp">
            <ul class="btn-list">
                <li class="item">

                    <a href="<?php echo $base_url?>home/order/shoppingcar" class="shop-car bg">
                        <!--<div class="num">1</div>-->
                        <i class="icon iconfont icon-icon"></i>
                    </a>
                </li>
                <li  class="item">
                     <!--<a href="./register.html">
                        <i class="iconfont icon-wode"></i>请登录
                    </a>-->
                    <?php if(isset($user)){?>
                    <span href="#" class="bg">
                        <i class="icon iconfont icon-wode"></i><?php echo $user->mobile;?>
                    </span>
                    
                    <ul class="child-item">
                            <li><a href="<?php echo $base_url?>home/order/userorders">我的订单</a></li>
                            <li><a href="<?php echo $base_url?>home/address">收货地址</a></li>
                            <li><a href="<?php echo $base_url;?><?php if(!empty($cardid)){echo 'home/card/cardlist';}else{echo 'home/card/addcard';}?>">绑定银行卡</a></li>
                            <li><a href="<?php echo $base_url?>home/account/logout">退出商城</a></li>
                    </ul>
                    <?php }else{?>
                    <a href="<?php echo $base_url?>home/account/login?back_url=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>">
                        <i class="iconfont icon-wode"></i>请登录
                    </a>
                    <?php }?>
                </li>
            </ul>
            <a href="<?php echo $base_url?>home/goods/index">
            <img src="<?php echo $base_url?>static/dist/images/logo.png" alt="" class="logo-img">
             <span class="span_txt">商城首页</span>
            </a>
        </div>
    </div>

    <div class="card-list">
        <div class="warp">
            <div class="tit">
                绑定银行卡
            </div>
            <div class="sm_tit first">
                *此银行卡作为您的返钱账户
            </div>
            <div class="card-item">
                <a href="#123" class="a_box">
                    <div class="cont">
                        <i class="iconfont icon-yinxingqiaguanli"></i>
                        <!--<i class="iconfont icon-huanyihuan"></i>--> 
                        <div class="msg">
                            <p class="txt_1"><?php echo $bankname;?></p>
                            <p class="txt_2"><?php echo $userinfo['username']?></p>
                            <p class="num txt_3"><?php echo substr_replace($userinfo['cardid']," **** **** ",4, -4);?></p>
                        </div>
                    </div>
                </a>
                <a href="<?php echo $base_url?>home/card/addcard?status=edit" class="huanyihuan-btn">
                <i class="iconfont icon-huanyihuan"></i>
                更换
                </a>
            </div>
            

        </div>
        <div class="pd-100"></div>
    </div>

    <?php $this->load->view('home/pc/comm'); ?>

    <script src="<?php echo $base_url?>static/dist/js/lib/jquery.min.js"></script>
    <script>
        $(function () {
            var swiperSlide = $('.swiper-container').find('.swiper-slide');
            if (swiperSlide.length > 2) {
                var swiper = new Swiper('.swiper-container', {
                    pagination: '.swiper-pagination',
                    paginationClickable: true
                });
            }
        })
    </script>
    <?php $this->load->view('home/pc/footer_js');?>
</body>

</html>
